package com.tianzhu.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the ACL_ENTRY database table.
 * 
 */
@Entity
@Table(name="ACL_ENTRY")
@NamedQuery(name="AclEntry.findAll", query="SELECT a FROM AclEntry a")
public class AclEntry implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="ACL_ENTRY_ID_GENERATOR", sequenceName="ACL_ENTRY_S")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ACL_ENTRY_ID_GENERATOR")
	@Column(unique=true, nullable=false, precision=38)
	private Long id;

	@Column(name="ACE_ORDER", nullable=false, precision=38)
	private BigDecimal aceOrder;

	@Column(name="AUDIT_FAILURE", nullable=false, precision=1)
	private BigDecimal auditFailure;

	@Column(name="AUDIT_SUCCESS", nullable=false, precision=1)
	private BigDecimal auditSuccess;

	@Column(nullable=false, precision=1)
	private BigDecimal granting;

	@Column(nullable=false, precision=38)
	private BigDecimal mask;

	//bi-directional many-to-one association to AclObjectIdentity
	@ManyToOne
	@JoinColumn(name="ACL_OBJECT_IDENTITY", nullable=false)
	private AclObjectIdentity aclObjectIdentityBean;

	//bi-directional many-to-one association to AclSid
	@ManyToOne
	@JoinColumn(name="SID", nullable=false)
	private AclSid aclSid;

	public AclEntry() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public BigDecimal getAceOrder() {
		return this.aceOrder;
	}

	public void setAceOrder(BigDecimal aceOrder) {
		this.aceOrder = aceOrder;
	}

	public BigDecimal getAuditFailure() {
		return this.auditFailure;
	}

	public void setAuditFailure(BigDecimal auditFailure) {
		this.auditFailure = auditFailure;
	}

	public BigDecimal getAuditSuccess() {
		return this.auditSuccess;
	}

	public void setAuditSuccess(BigDecimal auditSuccess) {
		this.auditSuccess = auditSuccess;
	}

	public BigDecimal getGranting() {
		return this.granting;
	}

	public void setGranting(BigDecimal granting) {
		this.granting = granting;
	}

	public BigDecimal getMask() {
		return this.mask;
	}

	public void setMask(BigDecimal mask) {
		this.mask = mask;
	}

	public AclObjectIdentity getAclObjectIdentityBean() {
		return this.aclObjectIdentityBean;
	}

	public void setAclObjectIdentityBean(AclObjectIdentity aclObjectIdentityBean) {
		this.aclObjectIdentityBean = aclObjectIdentityBean;
	}

	public AclSid getAclSid() {
		return this.aclSid;
	}

	public void setAclSid(AclSid aclSid) {
		this.aclSid = aclSid;
	}

}